package com.skywolf.chem.comments.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.comments.entity.CommentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评论列表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-06-09
 */
@Mapper
public interface CommentInfoMapper extends BaseMapper<CommentInfo> {

    List<CommentInfo> getCommentPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum,
                                     @Param("articleId") Long articleId, @Param("commentDesc")String commentDesc,
                                         @Param("articleTitle")String articleTitle,@Param("status")Integer status,
                                         @Param("startTime")String startTime,@Param("endTime")String endTime);

    Integer getCommentPageCount(@Param("articleId") Long articleId, @Param("commentDesc")String commentDesc, @Param("articleTitle")String articleTitle,
            @Param("status")Integer status,@Param("startTime")String startTime,@Param("endTime")String endTime);


    List<CommentInfo> myCommentPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum,@Param("uid") Long uid);

    Integer myCommentPageCount(@Param("uid") Long uid);

}
